import 'package:flame/components.dart';
import 'package:flame/game.dart';

class Base64SpriteGame extends BaseGame {
  @override
  Future<void> onLoad() async {
    const exampleUrl =
        '';
    final image = await images.fromBase64('shield.png', exampleUrl);
    add(
      SpriteComponent.fromImage(
        image,
        position: Vector2.all(100),
        size: Vector2.all(100),
      ),
    );
  }
}
